﻿@{
    ViewBag.Title = "编辑管理员";
}
@model Super.Entities.Administrator

@using (Html.AjaxBeginForm("edit", "admin"))
{
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(a => a.ID)
        @Html.DWZTextBoxFor(a => a.UserName, "登录名").Required()
        @Html.DWZPasswordFor(a => a.PassWord, "密码")
        <div class="divider">
        </div>
        <p>
            <label>管理员级别：</label>
            <span for="isSuper">超管</span>
            <input type="checkbox" name="isSuper" id="isSuper" value="true" />
            <script type="text/javascript">
             
                if('@Model.IsSuperAdmin'=='True') {
                    $('#isSuper').attr('checked', true);
                }
            </script>
        </p>
        
        @Html.TextBoxFor(a => a.LastLoginTime, new { type = "hidden" })
    </div>
    @Html.DWZFormBar()
}

